home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / layout / nsIMenuBoxObject.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  128 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIMenuBoxObject.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIMenuBoxObject_h__
  6. #define __gen_nsIMenuBoxObject_h__
  7.  
  8.  
  9. #ifndef __gen_nsIBoxObject_h__
  10. #include "nsIBoxObject.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMElement; /* forward declaration */
  18.  
  19. class nsIDOMKeyEvent; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsIMenuBoxObject */
  23. #define NS_IMENUBOXOBJECT_IID_STR "f5099746-5049-4e81-a03e-945d5110fee2"
  24.  
  25. #define NS_IMENUBOXOBJECT_IID \
  26.   {0xf5099746, 0x5049, 0x4e81, \
  27.     { 0xa0, 0x3e, 0x94, 0x5d, 0x51, 0x10, 0xfe, 0xe2 }}
  28.  
  29. class NS_NO_VTABLE nsIMenuBoxObject : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IMENUBOXOBJECT_IID)
  33.  
  34.   /* void openMenu (in boolean openFlag); */
  35.   NS_IMETHOD OpenMenu(PRBool openFlag) = 0;
  36.  
  37.   /* attribute nsIDOMElement activeChild; */
  38.   NS_IMETHOD GetActiveChild(nsIDOMElement * *aActiveChild) = 0;
  39.   NS_IMETHOD SetActiveChild(nsIDOMElement * aActiveChild) = 0;
  40.  
  41.   /* boolean handleKeyPress (in nsIDOMKeyEvent keyEvent); */
  42.   NS_IMETHOD HandleKeyPress(nsIDOMKeyEvent *keyEvent, PRBool *_retval) = 0;
  43.  
  44. };
  45.  
  46. /* Use this macro when declaring classes that implement this interface. */
  47. #define NS_DECL_NSIMENUBOXOBJECT \
  48.   NS_IMETHOD OpenMenu(PRBool openFlag); \
  49.   NS_IMETHOD GetActiveChild(nsIDOMElement * *aActiveChild); \
  50.   NS_IMETHOD SetActiveChild(nsIDOMElement * aActiveChild); \
  51.   NS_IMETHOD HandleKeyPress(nsIDOMKeyEvent *keyEvent, PRBool *_retval); 
  52.  
  53. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  54. #define NS_FORWARD_NSIMENUBOXOBJECT(_to) \
  55.   NS_IMETHOD OpenMenu(PRBool openFlag) { return _to OpenMenu(openFlag); } \
  56.   NS_IMETHOD GetActiveChild(nsIDOMElement * *aActiveChild) { return _to GetActiveChild(aActiveChild); } \
  57.   NS_IMETHOD SetActiveChild(nsIDOMElement * aActiveChild) { return _to SetActiveChild(aActiveChild); } \
  58.   NS_IMETHOD HandleKeyPress(nsIDOMKeyEvent *keyEvent, PRBool *_retval) { return _to HandleKeyPress(keyEvent, _retval); } 
  59.  
  60. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  61. #define NS_FORWARD_SAFE_NSIMENUBOXOBJECT(_to) \
  62.   NS_IMETHOD OpenMenu(PRBool openFlag) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenMenu(openFlag); } \
  63.   NS_IMETHOD GetActiveChild(nsIDOMElement * *aActiveChild) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActiveChild(aActiveChild); } \
  64.   NS_IMETHOD SetActiveChild(nsIDOMElement * aActiveChild) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetActiveChild(aActiveChild); } \
  65.   NS_IMETHOD HandleKeyPress(nsIDOMKeyEvent *keyEvent, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleKeyPress(keyEvent, _retval); } 
  66.  
  67. #if 0
  68. /* Use the code below as a template for the implementation class for this interface. */
  69.  
  70. /* Header file */
  71. class nsMenuBoxObject : public nsIMenuBoxObject
  72. {
  73. public:
  74.   NS_DECL_ISUPPORTS
  75.   NS_DECL_NSIMENUBOXOBJECT
  76.  
  77.   nsMenuBoxObject();
  78.  
  79. private:
  80.   ~nsMenuBoxObject();
  81.  
  82. protected:
  83.   /* additional members */
  84. };
  85.  
  86. /* Implementation file */
  87. NS_IMPL_ISUPPORTS1(nsMenuBoxObject, nsIMenuBoxObject)
  88.  
  89. nsMenuBoxObject::nsMenuBoxObject()
  90. {
  91.   /* member initializers and constructor code */
  92. }
  93.  
  94. nsMenuBoxObject::~nsMenuBoxObject()
  95. {
  96.   /* destructor code */
  97. }
  98.  
  99. /* void openMenu (in boolean openFlag); */
  100. NS_IMETHODIMP nsMenuBoxObject::OpenMenu(PRBool openFlag)
  101. {
  102.     return NS_ERROR_NOT_IMPLEMENTED;
  103. }
  104.  
  105. /* attribute nsIDOMElement activeChild; */
  106. NS_IMETHODIMP nsMenuBoxObject::GetActiveChild(nsIDOMElement * *aActiveChild)
  107. {
  108.     return NS_ERROR_NOT_IMPLEMENTED;
  109. }
  110. NS_IMETHODIMP nsMenuBoxObject::SetActiveChild(nsIDOMElement * aActiveChild)
  111. {
  112.     return NS_ERROR_NOT_IMPLEMENTED;
  113. }
  114.  
  115. /* boolean handleKeyPress (in nsIDOMKeyEvent keyEvent); */
  116. NS_IMETHODIMP nsMenuBoxObject::HandleKeyPress(nsIDOMKeyEvent *keyEvent, PRBool *_retval)
  117. {
  118.     return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120.  
  121. /* End of implementation class template. */
  122. #endif
  123.  
  124. nsresult
  125. NS_NewMenuBoxObject(nsIBoxObject** aResult);
  126.  
  127. #endif /* __gen_nsIMenuBoxObject_h__ */
  128.